package com.jiantong.work.service;

import com.jiantong.work.model.SupervisionRecords;
import io.terminus.common.model.Response;

import java.util.Map;
import java.util.Objects;

/**
 * 督查管理-督查记录
 * Created by mz03 on 2017/3/24.
 * @author :zyp
 */
public interface SupervisionRecordsWriteService {

    /**
     * 添加
     * @param supervisionRecords 单据对象
     * @return 主键 id
     */
    Response<Map<String,Object>> create(SupervisionRecords supervisionRecords, Integer toStatus);

    /**
     * 更新
     * @param supervisionRecords
     * @return true or false
     */
    Response<Map<String,Object>> update(SupervisionRecords supervisionRecords,Integer toStatus);
}
